<?php

namespace app\utils\ui\native_element;

use app\utils\ui\UIView;
use stdClass;

class Text extends stdClass implements UIView{


    public $text='';
    /**
     * @param string $text
     */
    public function __construct($text) 
    {
        $this->text=$text;
    }

    public function render(){
        return $this->text.PHP_EOL;
    }
    public function data(){
        return array();
    }
    
}